﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yes.Domain.Entity;
using Yes.Domain.Enum;

namespace Yes.Application.Article.Dto
{
    public  class ArticleDto 
    {
        public int Id { get; set; }

        public string CategoryName { get; set; }

        /// <summary>
        /// 作者ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 分类ID
        /// </summary>
        public int CategoryId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 封面图
        /// </summary>
        public string Img { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishDate { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifyDate { get; set; }

        /// <summary>
        /// 是否允许评论
        /// </summary>
        public bool CanComment { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentCount { get; set; }

        /// <summary>
        /// 密码，不为空时需要输入密码才可查看
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public int SortId { get; set; }

        /// <summary>
        /// 文章类型
        /// </summary>
        public ArticleTypeEnum Type { get; set; }

        /// <summary>
        /// 父文章ID
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 文章状态
        /// </summary>
        public ArticleStatusEnum Status { get; set; }

        /// <summary>
        /// 阅读数
        /// </summary>
        public int ReadCount { get; set; }

        public string UserName { get; set; }
    }
}
